package com.base.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.base.mapper.voipmapper.NewsInsertRecordMapper;
import com.base.po.voip.NewsInsertRecord;
import com.base.po.voip.NewsInsertRecordExample;
import com.base.service.NewsInsertRecordService;

@Service("newsInsertRecordService")
public class NewsInsertRecordServiceImpl implements NewsInsertRecordService {
	@Autowired
	private NewsInsertRecordMapper newsInsertRecordMapper;

	@Override
	public int countByExample(NewsInsertRecordExample example) {
	
		return newsInsertRecordMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(NewsInsertRecordExample example) {
	
		return newsInsertRecordMapper.deleteByExample(example);
	}

	@Override
	public int insert(NewsInsertRecord record) {
		
		return newsInsertRecordMapper.insert(record);
	}

	@Override
	public int insertSelective(NewsInsertRecord record) {
		
		return newsInsertRecordMapper.insertSelective(record);
	}

	@Override
	public List<NewsInsertRecord> selectByExample(NewsInsertRecordExample example) {
	
		return newsInsertRecordMapper.selectByExample(example);
	}

	@Override
	public List<NewsInsertRecord> selectByParentid(String parentid) {
		
		return newsInsertRecordMapper.selectByParentid(parentid);
	}

	@Override
	public NewsInsertRecord selectByPrimaryKey(String id) {
		
		return newsInsertRecordMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(NewsInsertRecord record, NewsInsertRecordExample example) {
		
		return newsInsertRecordMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(NewsInsertRecord record, NewsInsertRecordExample example) {
	
		return newsInsertRecordMapper.updateByExample(record, example);
	}

	
}
